# Maintainer: Justin Davis (juster) <jrcd83@gmail.com>
# $Id: PKGBUILD 71645 2012-05-31 15:16:11Z juster $

pkgname=perl-file-path-tiny
pkgver=0.3
pkgrel=1
pkgdesc='recursive versions of mkdir() and rmdir() without as much overhead as File::Path'
arch=(any)
license=(PerlArtistic GPL)
options=(!emptydirs)
depends=(perl)
url=https://metacpan.org/release/File-Path-Tiny
source=("http://search.cpan.org/CPAN/authors/id/D/DM/DMUEY/File-Path-Tiny-$pkgver.tar.gz")
md5sums=(46a1687953b02a0456f5a0ed65d1a396)
sha512sums=(1121c0ab5080fdbbd383ee5a9ad5d8c437a52cad09041c1f084195236d4c71407e29b07bb67f1eac8528cd4b27e6626d7e7477761c1ddb1ed6fe39ca6aeb43cc)
_dir="$srcdir/File-Path-Tiny-$pkgver"

build()
(
  cd "$_dir"
  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
  unset PERL5LIB PERL_MM_OPT
  /usr/bin/perl Makefile.PL
  make
)

check()
(
  cd "$_dir"
  export PERL_MM_USE_DEFAULT=1
  unset PERL5LIB
  make test
)

package()
(
  cd "$_dir"
  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
)

# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et:
